package com.vhall.component.entity.lottery.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 中奖用户
 *
 * @author yongzheng.xu
 */
@TableName("lottery_user")
public class LotteryUserEntity implements Serializable {

    private static final long serialVersionUID = 1597658457952L;


    /**
     * 主键
     * 抽奖中奖记录ID（主键）
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * PaaS应用ID
     */
    @TableField("app_id")
    private String appId;

    /**
     * 房间id
     */
    @TableField("il_id")
    private Integer ilId;

    /**
     * PAAS直播房间id
     */
    @TableField("room_id")
    private String roomId;

    /**
     * 抽奖标题
     */
    @TableField("title")
    private String title;

    /**
     * 用户账号
     */
    @TableField("username")
    private String username;

    /**
     * 抽奖中奖者头像
     */
    @TableField("nickname")
    private String nickname;

    /**
     * 是否已经成为抽奖中奖者：1 是 0 否
     */
    @TableField("is_winner")
    private Integer isWinner;

    /**
     * 抽奖状态：1-待抽奖用户
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;

    /**
     * 删除时间
     */
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    /**
     * 更新时间
     */
    @TableField("updated_at")
    private LocalDateTime updatedAt;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getIlId() {
        return ilId;
    }

    public void setIlId(Integer ilId) {
        this.ilId = ilId;
    }

    public String getRoomId() {
        return roomId;
    }

    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getIsWinner() {
        return isWinner;
    }

    public void setIsWinner(Integer isWinner) {
        this.isWinner = isWinner;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }
}
